﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site/HeThongSpa.Master" AutoEventWireup="true" CodeBehind="LichSuHeThong.aspx.cs" Inherits="HeThongSpa.QuanTriHeThong.HeThong.LichSuHeThong" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Lịch sử hệ thống
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <h1 style="font-weight: bold;">Lịch sử hệ thống</h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title"></h3>
            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse">
                    <i class="fa fa-minus"></i>
                </button>
            </div>
        </div>
        <div class="box-body" style="padding-bottom: 0;">
            <div class="row">
                <div class="col-xs-12 col-sm-4 col-md-6">
                    <div class="form-group form-group-sm">
                        <label>Từ khóa</label>
                        <asp:TextBox ID="txtTuKhoa" runat="server" CssClass="form-control" placeholder="Từ khóa tìm kiếm" MaxLength="200"></asp:TextBox>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-4 col-md-3">
                    <div class="form-group form-group-sm">
                        <label>Từ ngày&nbsp;<span style="color: #D73925;">*</span></label>
                        <div class="input-group date inputdate">
                            <asp:TextBox ID="txtTuNgay" runat="server" CssClass="form-control dateformat" MaxLength="10"></asp:TextBox>
                            <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-4 col-md-3">
                    <div class="form-group form-group-sm">
                        <label>Đến ngày&nbsp;<span style="color: #D73925;">*</span></label>
                        <div class="input-group date inputdate">
                            <asp:TextBox ID="txtDenNgay" runat="server" CssClass="form-control dateformat" MaxLength="10"></asp:TextBox>
                            <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-footer">
            <asp:Button ID="btnTimKiem" CssClass="btn btn-success btn-sm btn-flat" runat="server" Text="Tìm kiếm"
                OnClientClick=" validationform_Timkiem(); " OnClick="btnTimKiem_Click" />
        </div>
    </div>
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title"></h3>
            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse">
                    <i class="fa fa-minus"></i>
                </button>
            </div>
        </div>
        <div class="box-body" style="padding-bottom: 0;">
            <div class="table-responsive">
                <asp:GridView ID="gvDanhMuc" runat="server" AutoGenerateColumns="False" Width="100%" CssClass="table table-bordered table-condensed"
                    ShowHeaderWhenEmpty="True">
                    <EmptyDataTemplate>
                        <div class="row text-center">
                            <label>Không có dữ hiện hiển thị</label>
                        </div>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField DataField="RowNumber" HeaderText="STT">
                            <ItemStyle HorizontalAlign="Center" Width="5%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="TaiKhoan" HeaderText="Tài khoản">
                            <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="ViecDaLam" HeaderText="Nội dung"></asp:BoundField>
                        <asp:BoundField DataField="NgayThucHien" HeaderText="Ngày" DataFormatString="{0:dd-MM-yyyy HH:mm}">
                            <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12">
                    <asp:DataList RepeatDirection="Horizontal" runat="server" ID="dlPager" OnItemCommand="dlPager_ItemCommand"
                        CssClass="tbPage">
                        <ItemTemplate>
                            <asp:LinkButton Enabled='<%#Eval("Enabled") %>' runat="server" ID="lnkPageNo" Text='<%#Eval("Text") %>'
                                CommandArgument='<%#Eval("Value") %>' CommandName="PageNo">
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="hfPageIndex" runat="server" Value="1" />
    <script type="text/javascript">
        $(function () {
            $("#li_hethong").addClass("active");
            $("#li_hethong_lichsuhethong").addClass("active");
        });

        function validationform_Timkiem() {
            $("#<%= txtTuNgay.ClientID %>").rules("add", {
                required: true,
                messages: {
                    required: errempty
                }
            });
            $("#<%= txtDenNgay.ClientID %>").rules("add", {
                required: true,
                messages: {
                    required: errempty
                }
            });
            $("#<%= txtDenNgay.ClientID %>").rules("add", {
                datecompare: "#<%= txtTuNgay.ClientID %>"
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="FormContent" runat="server">
</asp:Content>
